#include <fenv.h>
#include <features.h>

/* Dummy functions for archs lacking fenv implementation */

weak_sym int feclearexcept(int mask)
{
	return 0;
}

weak_sym int feraiseexcept(int mask)
{
	return 0;
}

weak_sym int fetestexcept(int mask)
{
	return 0;
}

weak_sym int fegetround(void)
{
	return FE_TONEAREST;
}

weak_sym int __fesetround(int r)
{
	return 0;
}

weak_sym int fegetenv(fenv_t *envp)
{
	return 0;
}

weak_sym int fesetenv(const fenv_t *envp)
{
	return 0;
}
